using System;
namespace IcsSEMCtrl.Service.Logger
{
	[Serializable]
	public class Category
	{
		public const int _COM = 0;
		public const int _DEBUG = 1;
		public const int _ERROR = 2;
		public const int _INFO = 3;
		private int _value;
		private static int _size;
		private static Category[] _array;
		public static string[] displayStrings;
		public static Category COM;
		public static Category DEBUG;
		public static Category ERROR;
		public static Category INFO;
		public static Category IT_ENUM_MAX;
		static Category()
		{
			Category._size = 4;
			Category._array = new Category[Category._size];
			Category.displayStrings = new string[4];
			Category.COM = new Category(0);
			Category.DEBUG = new Category(1);
			Category.ERROR = new Category(2);
			Category.INFO = new Category(3);
			Category.IT_ENUM_MAX = new Category(2147483647);
			Category.displayStrings[0] = "COM";
			Category.displayStrings[1] = "DEBUG";
			Category.displayStrings[2] = "ERROR";
			Category.displayStrings[3] = "INFO";
		}
		public override string ToString()
		{
			return Category.displayStrings[this._value];
		}
		public int Value()
		{
			return this._value;
		}
		public static Category From_Int(int value)
		{
			Category result;
			if (value >= 0 && value < Category._size)
			{
				result = Category._array[value];
			}
			else
			{
				result = Category.IT_ENUM_MAX;
			}
			return result;
		}
		protected Category(int value)
		{
			this._value = value;
			if (value >= 0 && value < Category._size)
			{
				Category._array[this._value] = this;
			}
		}
		public bool Equals(Category otherEnum)
		{
			return otherEnum.Value() == this._value;
		}
	}
}
